function loadInfoCategories(){
    var jSonData = window.webConnector.getResult();
    var cat = window.webConnector.getCat();
    var page = window.webConnector.getActivePage();

    var myObject = jQuery.parseJSON(jSonData);

    var categoryItems = jQuery("#categories-item");
    var pagerCategory = jQuery("#pager-catagories .ui-controlgroup-controls");

    categoryItems.html("");
    jQuery.each(myObject.list, function() {
        categoryItems.append(this['data']);
    });

    jQuery("#category-title").html(myObject.name);
    pagerCategory.html("");
    var totalPg = intTotalPage(parseInt(myObject.totalnumber));

    if(totalPg <= 5) {
      pagerCategory.append(renderPager("categories.html?cat="+cat+"&page=1", "1", "1", "0"));
        for(var index = 2; index <= totalPg-1; index++) {
            pagerCategory.append(renderPager("categories.html?cat="+cat+"&page="+index, index));
        }
        pagerCategory.append(renderPager("categories.html?cat="+cat+"&page="+totalPg, totalPg, "0", "1"));
    }
    else {
      if(page <= 3) {
        var pageTmp;
        pagerCategory.append(renderPager("categories.html?cat="+cat+"&page=1", "1", "1", "0"));
        for(var index = 2; index <= 5; index++) {
            pagerCategory.append(renderPager("categories.html?cat="+cat+"&page="+index, index));
            pageTmp = index;
          }

        if(pageTmp < totalPg)
          pagerCategory.append(renderPager("categories.html?cat="+cat+"&page="+pageTmp, '>>', "0", "1"));
      }
      else {
        var pageTmp = page - 3;
        pagerCategory.append(renderPager("categories.html?cat="+cat+"&page="+pageTmp, "<<", "1", "0"));
        var pageCnt = parseInt(page);

        if(pageCnt + 2 >= totalPg)
          pageCnt = totalPg - 2;

        for(var index1 = parseInt(pageCnt - 2); index1 <= parseInt(pageCnt + 2); index1++) {
            pagerCategory.append(renderPager("categories.html?cat="+cat+"&page="+index1, index1));
            pageTmp = index1;
          }

        if(pageTmp < totalPg)
          pagerCategory.append(renderPager("categories.html?cat="+cat+"&page="+pageTmp, ">>", "0", "1"));
      }
    }
}
